package com.example.demo.service;

import com.example.demo.bean.Department;
import com.example.demo.common.ServerResponse;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/6/22
 */
public interface DepartmentService {
    ServerResponse<List<Department>> selectId(Integer parentId);

    ServerResponse<Department> addDepartment(Department department);

    void deleteDepartment(Integer departmentId);

    ServerResponse getFindOne(Integer departmentId);

    ServerResponse<Department> departmentUpdate(Department department);

}
